load("/data/general/npcs/elemental.lua")

local Talents = require("engine.interface.ActorTalents")
local descriptions = {"There are some who call me... Tim.", "I am the knight who says 'NEE'", "Tis but a scratch.", "A mere flesh-wound."}

newEntity{ define_as = "HOSTILE_WIZARD",
	type = "humanoid", subtype = "wizard", unique = true,
	name = "Hostile Wizard", faction = "enemies",
	display = "@", color=colors.VIOLET,
	desc = rng.table(descriptions),
	level_range = {25, 30}, exp_worth = 2,
	max_life = 120, life_rating = 15, fixed_rating = true,
	stats = { str=20, dex=20, con=20 },

	body = { INVEN = 10, MAINHAND=1, OFFHAND=1, BODY=1 },

	autolevel = "caster",
	ai = "dumb_talented_simple", ai_state = { talent_in=1, ai_move="move_astar" },

	on_die = function(self, who)
--		game.player.winner = true
		game.player:setQuestStatus("wizard-war", engine.Quest.COMPLETED)
		local D = require "engine.Dialog"
		D:simplePopup("Winner!", "#VIOLET#Congratulations, you have won the game!  Or have you? ;)")
	end,
}

